<?php

namespace adminmatrix\annotation;

class Service extends \think\Service
{

    use InteractsWithInject , InteractsWithModel ,InteractsWithRoute;
    protected Reader $reader;
    public function boot( Reader $reader): void
    {
        $this->reader = $reader;
        # 自动注入
        $this->autoInject();

        # 模型注解
        $this->detectModelAnnotations();

        # 路由注解
        $this->registerAnnotationRoute();
    }

    public function register(): void
    {
//        parent::register(); // TODO: Change the autogenerated stub
    }
}